package singleton;

/**
 * FileName: HungryStaticSingleton.HungryStaticSingleton
 * Author:   周壮
 * Date:     2020/3/5 10:48
 * Description:
 */
public class HungryStaticSingleton {

    private static final HungryStaticSingleton hungrySingleton;
    static {
        hungrySingleton = new HungryStaticSingleton();
    }
    private HungryStaticSingleton() {
    }
    public static HungryStaticSingleton getInstance() {
        return hungrySingleton;
    }
}
